<?php
$v_item_unit_id = _get_root_unit_id();
$arr_unit = get_arr_all_unit($_SESSION['arr_all_unit']);
$arr_list = $arr_unit;
?>
<body scroll =yes>
<table width="100%">
	<tr>
		<td></td>
		<td colspan="2">
			<DIV STYLE="overflow: auto; height:220pt;padding-left:5px;margin:0px">
				<table width="99%" cellpadding="0" cellspacing="0">
					<tr>
						<td><?php
							$v_current_id = -1;
							$xslt=new Xslt();
							$xslt->setXmlString(_built_XML_tree($arr_list,$v_current_id,'false','home.jpg','home.jpg','user.bmp','true'));
							$xslt->setXsl("../../isa-lib/isa-function/treeview.xsl");
							if($xslt->transform()) {
								$ret=$xslt->getOutput();
								echo $ret;
							}else{
								print("Error:".$xslt->getError());
							}?>
						</td>
					</tr>				
				</table>
			</DIV>
		</td>
	</tr>
</table>
</body>